
Rem
bbdoc: Expiration system. Typically used for bullets, particles, triggers, buttons, etc.
about: Required Components: TExpiration.
end rem
Type TExpirationSystem Extends TEntityProcessingSystem

	Field _expirationMapper:TComponentMapper
	
	
	Method Initialize()
		_expirationMapper = TComponentMapper.Create(New TExpirationComponent, _world)
		RegisterComponent(New TExpirationComponent)
	End Method

	
	Method ProcessEntity(e:TEntity)		
		Local ex:TExpirationComponent = TExpirationComponent(_expirationMapper.Get(e))
		ex.Update()
	End Method

End Type
